package com.soboot.base.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Author:
 * @createTime: 2022年09月21日 10:54:16
 * @version:
 * @Description:
 * @Copyright:
 */
@Data
@NoArgsConstructor
//@ApiModel(value="BasePageModel",description = "分页基类")
public class BasePageModel {

    @NotNull
    @Min(1)
    //@ApiModelProperty(value = "页数", dataType = "int")
    private Integer pageNum = 1;

    @NotNull
    //@ApiModelProperty(value = "每页条数", dataType = "int")
    private Integer pageSize = 20;

    //@ApiModelProperty(value = "排序", dataType = "string")
    private String orderBy;

    //降序还是升序
    private String sort;
}
